package ar.edu.unlp.info.tesis.database.operator;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Expression;

public class EqualRestriction extends OperatorRestriction {

	public EqualRestriction(String field, Object value) {
		super(field, value);
	}

	@Override
	public Criterion getExpresion() {
		return Expression.eq(this.getField(), this.getValue());
	}

}
